package com.example.patentback.entity;

import lombok.ToString;

import javax.persistence.*;

@Table(name = "patent_applicant")
@ToString
public class PatentApplicant {
    @Id
    private Long id;

    @Column(name = "patent_id")
    private Long patentId;

    @Column(name = "applicant_id")
    private Long applicantId;

    /**
     * 1代表是联系人，0代表不是
     */
    private Long contact;

    /**
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * @return patent_id
     */
    public Long getPatentId() {
        return patentId;
    }

    /**
     * @param patentId
     */
    public void setPatentId(Long patentId) {
        this.patentId = patentId;
    }

    /**
     * @return applicant_id
     */
    public Long getApplicantId() {
        return applicantId;
    }

    /**
     * @param applicantId
     */
    public void setApplicantId(Long applicantId) {
        this.applicantId = applicantId;
    }

    /**
     * 获取1代表是联系人，0代表不是
     *
     * @return contact - 1代表是联系人，0代表不是
     */
    public Long getContact() {
        return contact;
    }

    /**
     * 设置1代表是联系人，0代表不是
     *
     * @param contact 1代表是联系人，0代表不是
     */
    public void setContact(Long contact) {
        this.contact = contact;
    }
}